projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da6096f
)
ngl: Fix a case of flipped shadow
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 12 Apr 2021 02:02:44 +0000
(22:02 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 12 Apr 2021 02:10:33 +0000
(22:10 -0400)
In the non-sliced case, we were rendering the shadow
upside down.
gsk/ngl/gsknglrenderjob.c
patch
|
blob
|
history
diff --git
a/gsk/ngl/gsknglrenderjob.c
b/gsk/ngl/gsknglrenderjob.c
index 60f0cff82c24d45bc69caaa0d10cbea23ae811a4..4a3d1394b72a79276e4b1a1b8000e0ee88d1bdbe 100644
(file)
--- a/
gsk/ngl/gsknglrenderjob.c
+++ b/
gsk/ngl/gsknglrenderjob.c
@@
-2433,7
+2433,7
@@
gsk_ngl_render_job_visit_blurred_outset_shadow_node (GskNglRenderJob *job,
float min_x = floorf (outline->bounds.origin.x - spread - half_blur_extra + dx);
float min_y = floorf (outline->bounds.origin.y - spread - half_blur_extra + dy);
- offscreen.was_offscreen =
FALS
E;
+ offscreen.was_offscreen =
TRU
E;
offscreen.texture_id = blurred_texture_id;
init_full_texture_region (&offscreen);